<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.min.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .head1{
            background-color: cornflowerblue;
            height: 5vh;
            line-height: 5vh;
            text-align: center;
            color: cornsilk;
        }
        .body1{
            background-color:cornsilk;
            text-align: center;
            line-height: 90vh;
            height: 90vh;
            
        }
        .footer1{
            background-color: cornflowerblue;
            text-align: center;
            line-height: 5vh;
            height: 5vh; 
            color: cornsilk;
        }
    </style>
</head>
<body>
    <div id="app">
        <head-comp></head-comp>
        <body-comp></body-comp>
        <footer-comp></footer-comp> 
    </div>
        
   
    <script>
        var heads=Vue.extend({template:"<div class='head1'>我是头部logo</div>"})
        var bodys=Vue.extend({template:"<div class='body1'>我是内容详情页</div>"})
        var footers=Vue.extend({template:"<div class='footer1'>我是底部</div>"})
        Vue.component("head-comp",heads)
        Vue.component("body-comp",bodys)
        Vue.component("footer-comp",footers)
        new Vue({
            el:"#app"
           
        })
    </script>
</body>
</html>